using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Microsoft.WindowsMobile;
using Microsoft.WindowsCE.Forms;

namespace RotateScreen
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [MTAThread]
        static void Main()
        {
            ScreenOrientation so = SystemSettings.ScreenOrientation;
                switch (so)
                {
                    case ScreenOrientation.Angle0 :
                        SystemSettings.ScreenOrientation = ScreenOrientation.Angle270;
                        break;
                    case ScreenOrientation.Angle90 :
                        SystemSettings.ScreenOrientation = ScreenOrientation.Angle0;
                        break;
                    case ScreenOrientation.Angle180:
                        SystemSettings.ScreenOrientation = ScreenOrientation.Angle90;
                        break;
                    case ScreenOrientation.Angle270:
                        SystemSettings.ScreenOrientation = ScreenOrientation.Angle180;
                        break;
                }


            Application.Exit();
        }
    }
}